﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;

namespace QFlow.Data
{
    public static class AccountingLogExtension
    {
        public static AccountingLog GetLatestLog(this Table<AccountingLog> queriable)
        {
            return queriable.Where(log => log.TimeStamp == queriable.Max(log2 => log2.TimeStamp)).First();
        }
    }
}
